package org.infosec.lc.exercises.esper.listener;

import org.infosec.lc.exercises.esper.modle.AEvent;
import org.infosec.lc.exercises.esper.modle.BEvent;

import com.espertech.esper.client.EventBean;
import com.espertech.esper.client.UpdateListener;

/**
	文件名：SimpleCepListener.java
	作  者：林超
	时  间：2011-6-23下午02:44:58

	功能描述：
	
	pom.xml	:
			
 */
public class SimpleCepListener implements UpdateListener {

	public void update(EventBean[] newEvents, EventBean[] oldEvents) {
		System.out.println("aevent="+((AEvent) newEvents[0].get("a")).getUnderlying());
		System.out.println("bevent="+((BEvent) newEvents[0].get("b")).getUnderlying());
	}

}

